package Exercises;

import java.util.Scanner;

public class Task2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner (System.in);

	while(true)
	{
	int sum = 0;
	
	for(int i = 1; i != 0; i++)
		{
		System.out.println("Please add a number: ");
		int s = sc.nextInt();
		
		sum +=s;
		if(s == 0)
		{
			break;
		}
	}
		System.out.println("The sum of your numbers is: " +sum);
		
		
	}
	}

}
